<template>
  <component v-if="tag" :is="getPropsWin(tag)" v-bind="$attrs" />
</template>

<script setup lang="ts">
import { computed } from 'vue'
import { useComponent } from './hooks'
import { useFlowStore } from '@/stores/flow'

const { getPropsWin } = useComponent()
const fs = useFlowStore()
const tag = computed(() => fs.currComp.comp.config.compTag)
</script>

<style lang="scss" scoped>
.props-wrap {
  height: 650px;
  overflow-y: auto;
}
</style>
